<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/style1.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" />
<script src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
<style>
	.hd-page span{
		
		color:black !important;
	}
</style>
<script type="text/javascript">
	var getSonCate = "<?php echo U('Category/getSonCate');?>";
	var getChildCate = "<?php echo U('Category/getChildCate');?>";
	var C = 'http://127.0.0.1/vancl_php/index.php/Admin/User';
</script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/User/js/category.js"></script>


<script type="text/javascript">
$(document).ready(function(){
//$(".click").click(function(){
//$(".tip").fadeIn(200);
//});
//
//$(".tiptop a").click(function(){
//$(".tip").fadeOut(200);
//});
//
//$(".sure").click(function(){
//$(".tip").fadeOut(100);
//});
//
//$(".cancel").click(function(){
//$(".tip").fadeOut(100);
//});

});
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">会员管理</a></li>
    <li><a href="#">会员列表</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li class="click"><a href="<?php echo U('addUser');?>"><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t01.png" /></span>添加用户</a></li>
        <!--<li class="click"><a href="<?php echo U('addAdmin');?>"><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t01.png" /></span>添加后台用户</a></li>-->
        
        <!--<li class="click"><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t02.png" /></span>修改</li>
        <li><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t03.png" /></span>删除</li>-->
        </ul>
        
        
        <ul class="toolbar1">
        <!--<li><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t05.png" /></span>设置</li>-->
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>用户ID<i class="sort"><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/px.gif" /></i></th>
        <th>用户名</th>
        <th>性别</th>
        <th>余额</th>
        <th>最后登陆时间</th>
        <th>最后登陆IP</th>
        <th>注册时间</th>
        <th>状态</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($users as $key=>$val){?>
        <tr>
        <td><?php echo $val['uid'];?></td>
        <td><a href=""><?php echo $val['username'];?></a></td>
        <td><?php echo $val['sex'];?></td>
        <td><?php echo $val['user_money'];?></td>
        <td><?php echo date('Y-m-d H:i:s',$val['last_login_time']);?></td>
        <td><?php echo $val['last_login_ip'];?></td>
        <td><?php echo date('Y-m-d H:i:s',($val['reg_time']));?></td>
        <td>    <?php if($val['is_lock']==1){ ?>锁定<?php }else{ ?>正常<?php } ?></td>
        <td><a href="http://127.0.0.1/vancl_php/index.php/Admin/ReceivAddr/receivAddr/uid/<?php echo $val['uid'];?>/username/<?php echo $val['username'];?>">收货地址</a>    <?php if($val['is_lock']==0){ ?><a href="http://127.0.0.1/vancl_php/index.php/Admin/User/userLock/uid/<?php echo $val['uid'];?>/lock/1" class="tablelink">锁定</a><?php }else{ ?><a href="http://127.0.0.1/vancl_php/index.php/Admin/User/userLock/uid/<?php echo $val['uid'];?>/lock/0" class="tablelink">解锁</a><?php } ?> <a href="http://127.0.0.1/vancl_php/index.php/Admin/User/delUser/uid/<?php echo $val['uid'];?>" class="tablelink">删除</a> <a href="http://127.0.0.1/vancl_php/index.php/Admin/User/editUser/uid/<?php echo $val['uid'];?>" class="tablelink">修改</a></td>
        </tr>
        <?php }?>
        
         
        </tbody>
    </table>
  	<div class="hd-page"> 
   		<?php echo $page;?>
  	</div>
    <!--<div class="pagin">-->
    	
    	<!--<div class="message">共<i class="blue">1256</i>条记录，当前显示第&nbsp;<i class="blue">2&nbsp;</i>页</div>
        <ul class="paginList">
        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
        <li class="paginItem"><a href="javascript:;">1</a></li>
        <li class="paginItem current"><a href="javascript:;">2</a></li>
        <li class="paginItem"><a href="javascript:;">3</a></li>
        <li class="paginItem"><a href="javascript:;">4</a></li>
        <li class="paginItem"><a href="javascript:;">5</a></li>
        <li class="paginItem more"><a href="javascript:;">...</a></li>
        <li class="paginItem"><a href="javascript:;">10</a></li>
        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
        </ul>-->
    <!--</div>-->
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/ticon.png" /></span>
        <div class="tipright">
        <p>您是否确定要删除这个分类吗 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
	<script>
//		$('.sonPlus').toggle(function(){
//			//切换+-号
//			$(this).find('.glyphicon').addClass('glyphicon-minus');
//			//获得当前的CID也就是下面的pid
//			var pid = $(this).parent('tr').data('cid');
//			$('tr').filter(function(index){
//				if($('tr').eq(index).data('pid') == pid){
//					$('tr').eq(index).show();
//				}
//			});
//		},function(){
//			$(this).find('.glyphicon').removeClass('glyphicon-minus');
//			var pid = $(this).parent('tr').data('cid');
//			$('tr').filter(function(index){
//				if($('tr').eq(index).data('pid') == pid){
//					$('tr').eq(index).hide();
//				}
//			});
//		})
</script>
</body>

</html>
